package com.wkw.jkyf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wkw.jkyf.pojo.Supplier;
import com.wkw.jkyf.pojo.User;

import java.util.List;

public interface ISupplierService extends IService<Supplier> {

    //分页查询数据
    // pageNum 第几页 pageSize 页面大小  查询参数
    public IPage<Supplier> selectSupplierPage(int pageNum,int pageSize,String param);


    //添加
    public int addsupplier(Supplier supplier);

    //修改
    public int editsupplier(Supplier supplier);

    //根据主键id查询
    public Supplier querysupplierById(Integer id);

    //根据主键id删除
    public int deletesupplierById(Integer id);

    //查询所有
    public List<Supplier> querySupplierList();

}
